<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html><head>
        <%@ include file="head.jsp" %>
        <script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script>
    </head>
    <body class="mainframe bgcolor1">

        <c:choose>
            <c:when test="${empty model.localVersion}">
                <fmt:message key="common.unknown" var="versionString"/>
            </c:when>
            <c:otherwise>
                <c:set var="versionString" value="${model.localVersion}"/>
            </c:otherwise>
        </c:choose>

        <h1>
            <img src="<spring:theme code="helpImage"/>" alt="">
            <span style="vertical-align: middle"><fmt:message key="help.title"></fmt:message>
        </h1>

        <table width="75%" class="ruleTable indent">
            <tr><td class="ruleTableHeader"><fmt:message key="help.version.title"/></td><td class="ruleTableCell">${versionString}</td></tr>
            </table>

            <p></p>

            <h2>
                <img src="<spring:theme code="logImage"/>" alt="">
                <span style="vertical-align: middle"><fmt:message key="help.log"/></span>
            </h2>

        <table cellpadding="2" class="log indent">
            <c:forEach items="${model.logEntries}" var="entry">
                <tr>
                    <td>[<fmt:formatDate value="${entry.date}" dateStyle="short" timeStyle="long" type="both"/>]</td>
                    <td>${entry.level}</td><td>${entry.category}</td><td>${entry.message}</td>
                </tr>
            </c:forEach>
        </table>

        <p><fmt:message key="help.logfile"><fmt:param value="${model.logFile}"/></fmt:message> </p>

            <div class="forward"><a href="help.view?"><fmt:message key="common.refresh"/></a></div>

    </body></html>